public class Main {

    public static void walk(IWalk iWalk) {
        iWalk.Walking();
    }

    public static void func(Animal animal) {
        animal.eat();
    }


    public static void main(String[] args) {
        /*Computer computer = new Computer();
        computer.poweron();
        computer.useDevice(new Mouse());
        computer.useDevice(new KeyBoard());
        computer.powerOff();*/

        IWalk iWalk = new Dog("xiao",23);
        iWalk.Walking();
        System.out.println("===============");
        walk(new Dog("xiao",23));
        func(new Dog("xiao",23));

    }
}
